//
//  Images.swift
//  ZhiTing
//
//  Created by iMac on 2021/2/3.
//

import UIKit

enum AssetsName: String {
    case home
    case home_sel
    case mine
    case mine_sel
    case scene
    case scene_sel
    case navigation_back
    case plus_circle
    case plus
    case icon_add_device
    case icon_family_brand
    case icon_brand
    case arrow_right
    case search
    case search_bold
    case empty_device
    case tick_green
    case discoverBG1
    case discoverBG2
    case discoverBG3
    case exclamation_mark
    case right_arrow_gray
    case add_family_icon
    case home_bg
    case selected_tick
    case selected_tick_red
    case unselected_tick
    case close_button
    case plus_blue
    case icon_edit
    case settings
    case family_sel
    case family_unsel
    case upload_bg
    case switch_on
    case switch_off
    case showPwd
    case hidePwd
    case login_logo
    case icon_thirdParty
    case default_avatar
    case default_avatar_rounded
    case icon_noNetwork
    case default_device
    case loading
    case icon_scan
    case nav_back_white
    case icon_professional
    case icon_fail
    case icon_launch
    case icon_role
    case icon_warning
    case icon_privacy
    case history_button
    case scene_time
    case scene_status
    case scene_connect
    case noScene
    case course_bg
    case plus_gray
    case plus_blue_circle
    case icon_condition_manual
    case icon_condition_timer
    case icon_condition_state
    case icon_smart_device
    case icon_control_scene
    case arrow_up
    case arrow_down
    case selected_tick_square
    case unselected_tick_square
    case icon_noAuth
    case icon_developing
    case icon_noContent
    case icon_noList
    case icon_noRoom
    case icon_noHistory
    case icon_nav_minimize
    case icon_nav_account
    case guide_img1
    case guide_img2
    case guide_img3
    case guide_img4
    case guide_img5
    case guide_img6
    case guide_img7
    case guide_img8
    case guide_token_1
    case guide_token_2
    case guide_token_3
    case sliderThumb
    case icon_delay
    case icon_update
    case icon_update_orange
    case refreshing_white
    case refreshing_orange
    case icon_alert_warning
    case homekit_icon
    case icon_wifi
    case icon_lock
    case icon_about_us
    case app_logo
    case icon_wifi_blue
    case icon_resetDevice
    case noToken
    case software_update
    case software_update_logo
    case software_update_back
    case arrow_down_bold
    case arrow_up_bold
    case arrow_right_deepGray
    case add_fail
    case icon_addFamily
    case icon_addCompany
    case icon_department
    case icon_experience
    case close_button_rounded
    case device_sa
    case manager_icon
    case icon_crm
    case icon_nas
    case icon_scm
    case icon_warning_light
    case guide_experience1
    case guide_experience2
    case guide_experience3
    case icon_auth_waiting
    case icon_auth_error
    case icon_auth_done
    case Launch1
    case Launch2
    case Launch3
    case Launch4
    case Launch1_iPhoneX
    case Launch2_iPhoneX
    case Launch3_iPhoneX
    case Launch4_iPhoneX
    case fileSelected_selected
    case updateApp_img
    case updateApp_closeBtn
    case corner_select_icon
    case scanImg_icon
    case icon_authorized
    case icon_feedback
    case icon_date
    case icon_feedback_question
    case icon_feedback_suggestion
    case icon_create_feedback
    case icon_add_photo
    case btn_play
    
    case commonly_Add
    case commonly_Delete

    case icon_list_style
    case icon_flow_style
    case icon_setting
    case icon_room_manage
    case icon_device_sorting
    case icon_show_all_device
    case icon_hide_offline_device
    case icon_common_device_setting
    case icon_delete
    
    case sort_icon
    case icon_low_battery
    case icon_double_arrow
    case icon_menu
    case icon_tips_blue
    case icon_warning_red
    case icon_ble_offline
    case icon_ble_online
    case icon_verified
    case icon_door_closed
    case icon_door_opened
    case guide_cateye
    case guide_locked
    case pwd_bg
    case icon_doorlock_user
    case icon_pwd_lock
    case icon_pwd_finger
    case icon_pwd_nfc
    case icon_pwd_lock_color
    case icon_pwd_finger_color
    case icon_pwd_nfc_color
    case icon_edit_blue
    case tag_normal
    case tag_guest
    case tag_threaten
    case smart_lock
    case icon_noTF
    
    case scanLight_off
    case scanLight_on

    case protrait_ConsoleBackgroundImage_normal
    case protrait_ConsoleBackgroundImage_active_up
    case protrait_ConsoleBackgroundImage_active_right
    case protrait_ConsoleBackgroundImage_active_left
    case protrait_ConsoleBackgroundImage_active_down
    
    case landscape_ConsoleBackgroundImage_normal
    case landscape_ConsoleBackgroundImage_active_up
    case landscape_ConsoleBackgroundImage_active_right
    case landscape_ConsoleBackgroundImage_active_left
    case landscape_ConsoleBackgroundImage_active_down
    
    case camera_shot
    case camera_record
    case camera_audio
    case camera_talk
    case camera_function
    case camera_shot_selected
    case camera_record_selected
    case camera_audio_selected
    case camera_talk_selected
    case camera_function_selected

    case camera_leftRight
    case camera_leftRight_white
    case camera_upDown
    case camera_upDown_white
    case camera_playback
    case camera_lock
    case camera_normalPlace
    case camera_collection
    case camera_leftRight_selected
    case camera_upDown_selected
    case camera_playback_selected
    case camera_lock_selected
    case camera_lock_landscape
    case camera_lock_landscape_selected
    case camera_normalPlace_selected
    case camera_collection_selected

    case camera_shadow_up
    case camera_shadow_down
    case camera_intoLanscape
    case camera_intoPortrait
    
    case camera_voice_on
    case camera_voice_off
    
    case camera_playback_stop
    case camera_playback_play
    
    case camera_placehoder_icon
    case camera_slider_dot

    case camera_shot_landscape
    case camera_record_landscape
    case camera_record_selected_landscape
    case camera_talk_landscape
    case camera_talk_selected_landscape
    case camera_audio_landscape
    case camera_audio_selected_landscape
    
    case sa_background
    case btn_maintain_select
    case btn_maintain_normal

    case mail_mailIcon
    case mail_phoneIcon
    case help_img
    
    var assetName: String {
        return self.rawValue
    }
}

extension UIImage {
    static func assets(_ asset: AssetsName) -> UIImage? {
        return UIImage(named: asset.assetName)
    }
}
